package com.pig.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig.pojo.goods.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CommentDao extends BaseMapper<Comment> {
    /**
     * 通过商品id查询对应的评论信息
     *
     * @param goodsId
     * @param commentIndex
     * @param pageSize
     * @return
     */
    List<Comment> findCommentByGoodsId(@Param("goodsId") Integer goodsId, @Param("commentIndex") Integer commentIndex, @Param("pageSize") Integer pageSize);


}
